package com.example.forum.service;

import com.example.forum.domain.User;

import java.util.Map;

public interface UserService {
    //根据id查询一个user
    public User findById(Integer id);

    //注册用户
    public Map<String,String> registerUser(User user);

    //激活用户
    public int active(String activeCode,int id);

    //用户登录
    public Map<String,Object> login(String username,String password,int timeoutSeconds);

    //上传用户头像
    public void upHeadImage(String headerUrl,int id);

    //修改用户密码
    public Map<String,String> updatePassword(String oldPassword,String newPassword,String confirmPassword);

    //查询用户的密码是否正确
}
